package com.bci.pwtz.mysql.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.bci.pwtz.mysql.model.CompanyMessage;

public interface CompanyMessageMapper {
    int deleteByPrimaryKey(Long messageId);

    int insert(CompanyMessage record);

    int insertSelective(CompanyMessage record);

    CompanyMessage selectByPrimaryKey(Long messageId);

    int updateByPrimaryKeySelective(CompanyMessage record);

    int updateByPrimaryKey(CompanyMessage record);
    
    List<CompanyMessage> selectCompanyMessages(@Param("userid")Long userid);
    
    List<CompanyMessage> selectCompanyMessage(@Param("benginIndex") int benginIndex, @Param("pageSize") int pageSize,@Param("companyName")String companyName,@Param("userId")long userId);
    
    int selectCountCompanyMessages(@Param("companyName")String companyName,@Param("userId")long userId);
}